home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / gofer221.zip / COMMAND.H < prev    next >
C/C++ Source or Header  |  1991-11-20  |  993b  |  41 lines

  1. /* --------------------------------------------------------------------------
  2.  * command.h:    Copyright (c) Mark P Jones 1991.   All rights reserved.
  3.  *        See goferite.h for details and conditions of use etc...
  4.  *        Gofer version 2.21 November 1991
  5.  *
  6.  *        Last updated 08/11/91 mpj
  7.  *
  8.  * Interpreter command structure
  9.  * ------------------------------------------------------------------------*/
  10.  
  11. typedef Int Command;
  12.  
  13. struct cmd {
  14.     String cmdString;
  15.     Command cmdCode;
  16. };
  17.  
  18. extern struct cmd commands[];
  19. extern Char       cmdFirstChar;
  20.  
  21. #define EDIT    0
  22. #define FIND    1
  23. #define LOAD    2
  24. #define ALSO    3
  25. #define PROJECT 4
  26. #define RELOAD  5
  27. #define EVAL    6
  28. #define TYPEOF  7
  29. #define HELP    8
  30. #define NAMES   9
  31. #define BADCMD  10
  32. #define SET     11
  33. #define QUIT    12
  34. #define SYSTEM  13
  35. #define CHGDIR  14
  36. #define NOCMD   15
  37.  
  38. extern Command readCommand Args((Void));
  39.  
  40. /*-------------------------------------------------------------------------*/
  41.